#include "process.h"
#include <unistd.h>
#define total 1024
#define SPEED 1.0

void Download(){
    double current = 0;
    while(current <= total){
        FlushProcess(total, current);
        usleep(3000);
        current += SPEED;
    }
    printf("\n%.2lf files have been downloaded!\n", current);
}

int main()
{
    //process_v1();
    Download();
    return 0;
}
